<template>
  <div></div>
</template>
<script>
import {
  navToAuthor,
  setTenantId,
  removeTenantId,
  removeIdToken,
  removeToken,
} from "@/utils/auth";
export default {
  data() {
    return {};
  },
  methods: {},
  mounted() {
    let tenantId = this.$route.query.tenantId;
    let toUrl = this.$route.query.to;

    if (tenantId) setTenantId(tenantId);
    else removeTenantId();

    removeIdToken();
    removeToken();

    navToAuthor(toUrl, "Finance BasicData Business");
  },
};
</script>
